package cn.ztr.familyalbum.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-02
 */
@Data
@TableName("template_dictionary")
public class TemplateDictionary extends Model<TemplateDictionary> {

    private static final long serialVersionUID = 1L;

    /**
     * 数据字典id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 模板名称
     */
    @TableField("template_name")
    private String templateName;
    /**
     * 模板父编号
     */
    @TableField("group_serial_number")
    private String groupSerialNumber;
    /**
     * 模板介绍
     */
    @TableField("introduced")
    private String introduced;

    @TableField("is_del")
    private Integer isDel;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TemplateDictionary{" +
        ", id=" + id +
        ", templateName=" + templateName +
        ", groupSerialNumber=" + groupSerialNumber +
        "}";
    }
}
